<?php
/*
Template Name: Tag_results
*/
?>
<!--include header-->
<?php get_header(); ?>
<div id="content">
	<div id="theleftcontent">
		<h3><?php _e("Results for"). " " . current_tag();?></h3>
		<?php if (tag_results()) : ?>
			<?php global $post; ?> 
			<?php foreach (tag_results() as $post): ?>
			<?php setup_postdata($post); ?>
			<div class="post" id="post-<?php the_ID(); ?>">

		<div class="posttitle"><h1 id="post-<?php the_ID(); ?>"><a href="<?php the_guid() ?>"" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1></div>
		<span class="postdetails"><?php  echo __("Posted on", "telomiova") . " " . the_time('F jS, Y') ?> |<?php  echo __("Posted by", "telomiova") . " " . the_author() ; ?></span>  
		<div class="postcontent">
		 <?php   the_content() ?> 
		</div>

			<?php endforeach; ?>
		<?php else: ?>
			<p>Sorry, no posts matched your criteria.</p>
		<?php endif; ?>
			</div>
	</div>
</div>

<!--include sidebar-->
<?php get_sidebar(); ?>

<!--include footer-->
<?php get_footer(); ?>
